<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>修改联系人</title>
 <link rel="stylesheet" href="message/css/message_css.css" type="text/css"></link>
 <script type="text/javascript" src="message/js/WebCalendar.js"></script>
 
 </head>
  
  <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  
   <div class="topTitle">&nbsp;<img src="images/main_28.gif"/>&nbsp;修改我的个人信息</div>
<center>
	<form   action="updatePersonal" method="post">
	<input type="hidden" name="addressBook.id" value="addressBook.id">
	<table width="95%" cellpadding="0" cellspacing="0">
	  <tr>
	   <td class="td_01">&nbsp;姓&nbsp;&nbsp;&nbsp;&nbsp;名：</td>
	    <td class="td_01"><input name="addressBook.name" type="text" value="<s:property value='addressBook.name'/>"/>
	    	<input name="id" type="hidden" value="${id}"/>
	    </td>
	    <td class="td_01">&nbsp;通讯组：</td>
	    <td class="td_01">
    	<select name="addressBook.addressGroup.addressGroupId" id="select_p">
    		<s:iterator value="list2">
    			<s:if test="addressGroupId==addressBook.addressGroup.addressGroupId">
    			<option value="<s:property value='addressGroupId' />" selected="selected"><s:property value="addressGroupName" /></option>
    			</s:if>
    			<s:else>
    			<option value="<s:property value='addressGroupId' />"><s:property value="addressGroupName" /></option>
    			</s:else>
    		</s:iterator>
    	</select>
    </td>
   
  </tr>
  <tr>
    <td class="td_01">&nbsp;性&nbsp;&nbsp;&nbsp;&nbsp;别：</td>
    <td class="td_01">
    	<select name="addressBook.sex" id="select_p">
    		<c:if test="${addressBook.sex=='男' }">
    			<option value="男">男</option>
    			<option value="女">女</option>
    		</c:if>
    		<c:if test="${addressBook.sex=='女' }">
    			<option value="女">女</option>
    			<option value="男">男</option>    			
    		</c:if>
    		
    	</select>
	</td>
	<td class="td_01">&nbsp;民&nbsp;&nbsp;&nbsp;&nbsp;族：</td>
    <td class="td_01">
    	<select name="addressBook.nation" id="select_p">
    		<option value="汉族">汉族</option>
    		<option value="藏族">藏族</option>
    		<option value="苗族">苗族</option>
    		<option value="羌族">羌族</option>
    		<option value="鲜卑族">鲜卑族</option>
    		<option value="壮族 ">壮族</option>
    		<option value="维吾尔族">维吾尔族</option>
    		<option value="白族">白族</option>    		
    	</select>
	</td>
   
  </tr>
  <tr>
    <td class="td_01">&nbsp;婚姻状况：</td>
    <td class="td_01">
		<select name="addressBook.ismarriage" id="select_p">
			<c:if test="${addressBook.ismarriage=='是' }">
				<option value="是">已婚</option>
    			<option value="否">未婚</option>    			
    		</c:if>
    		<c:if test="${addressBook.ismarriage=='否' }">
    			<option value="否">未婚</option>  
				<option value="是">已婚</option>    			  			
    		</c:if>
    	</select>
	</td>
	 <td class="td_01">&nbsp;生&nbsp;&nbsp;&nbsp;&nbsp;日：</td>
    <td class="td_01"><input type="text" readonly="readonly" name="addressBook.birthday" value="<s:date format="yyyy-MM-dd" name='addressBook.birthday'/>" id="birthId" onclick="selectDate(birthId,'yy-MM-dd')"></td>
    
  </tr>
  <tr>
     <td class="td_01">&nbsp;移动电话：</td>
    <td class="td_01"><input type="text" name="addressBook.mobile" value="<s:property value='addressBook.mobile'/>"></td>
    <td class="td_01">&nbsp;工作电话：</td>
    <td class="td_01"><input type="text" name="addressBook.officePhone" value="<s:property value='addressBook.officePhone'/>"></td>
  </tr>
  <tr>   
    <td class="td_01">&nbsp;Q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Q：</td>
    <td class="td_01"><input type="text" name="addressBook.qq" value="<s:property value='addressBook.qq'/>"></td>
    <td class="td_01">&nbsp;电子邮箱：</td>
    <td class="td_01"><input type="text" name="addressBook.email" value="<s:property value='addressBook.email'/>"></td>
  </tr>
  <tr>
 
   <td class="td_01">&nbsp;家庭住址：</td>
    <td colspan="3" class="td_01"><input type="text" name="addressBook.address" value="<s:property value='addressBook.address'/>"></td>
 </tr>
  <tr>   
    <td colspan="4" align="center" class="td_01">
    	<input type="submit" value="修改" class="buttonface02">&nbsp;&nbsp;
    	<input type="reset" value="重置" class="buttonface02">&nbsp;&nbsp;
    	<input type="button" value="关闭" class="buttonface02">&nbsp;&nbsp;
    </td>    
  </tr>
</table>
    </form>
    </center>
  </body>
</html>
